{extend name="public/main" /}
{block name="content"}
<div class="layui-container fly-marginTop fly-user-main">
    {include file='public/sider' /}
    <div class="fly-panel fly-panel-user" pad20 style="padding-top:20px;">
        <div class="layui-row layui-col-space20">
            <div class="layui-col-md6">
                <div class="fly-panel fly-panel-border">
                    <div class="fly-panel-title"> 个人信息 </div>
                    <div class="fly-panel-main layui-text" style="padding: 18px 15px; height: 150px; line-height: 26px;">
                        <p>昵称：{$memberinfo['nickname']}</p>
                        <p>邮箱：{$memberinfo['email']}</p>
                        <p>会员组：{$Member_group[$memberinfo['groupid']]['name']}</p>
                        <p>账户余额：{$memberinfo['amount']}</p>
                        <p>积分点数：{$memberinfo['point']}</p>

                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="fly-panel fly-panel-border">
                    <div class="fly-panel-title"> 详细信息 </div>
                    <div class="fly-panel-main layui-text" style="padding: 18px 15px; height: 150px; line-height: 26px;">
                        <p>所属模型：{$Model_member[$memberinfo['modelid']]['name']}</p>
                        <p>注册时间：{php} echo $memberinfo['reg_time'] ? time_format($memberinfo['reg_time']) : '--' {/php}</p>
                        <p>最后登录：{php} echo $memberinfo['last_login_time'] ? time_format($memberinfo['last_login_time']) : '--' {/php}</p>
                        <p>注册ip：{php} echo $memberinfo['reg_ip'] ? long2ip($memberinfo['reg_ip']) : '--' {/php}</p>
                        <p>上次登录ip：{php} echo $memberinfo['last_login_ip'] ? long2ip($memberinfo['last_login_ip']) : '--' {/php}</p>
                    </div>
                </div>
            </div>
        </div>
        <blockquote class="layui-elem-quote">安全等级：
        {switch name="safe_level" }
            {case value="1"}<a href="#" style="color:#FF5722;">低</a>{/case}
            {case value="2"}<a href="#" style="color:#1E9FFF;">中</a>{/case}
            {case value="3"}<a href="#" style="color:#1E9FFF;">高</a>{/case}
            {default /}<a href="#" style="color:#1E9FFF;">未知</a>
        {/switch}
        &nbsp;&nbsp;建议您通过以下方式提高安全级别！</blockquote>
        <ul class="app-bind">
            <li class="fly-msg  app-havebind">
                <i class="iconfont icon-zhengque" style="font-size: 28px; color: #009688;"></i>
                <h2>登录密码</h2>
                <span>互联网账户存在被盗风险，建议您定期更改密码以确保账户安全。</span>
                <a href="{:url('member/index/profile#pass')}" class="layui-btn layui-right">立即修改</a>
            </li>
            <li class="fly-msg  app-havebind">
                {eq name="memberinfo['ischeck_email']" value="1"}
                <i class="iconfont icon-zhengque" style="font-size: 28px; color: #009688;"></i>
                {else/}
                <i class="iconfont icon-cuowu" style="font-size: 30px; color: #FF5722;"></i>
                {/eq}
                <h2>邮箱验证</h2>
                <span>您的邮箱：{$memberinfo['email']} 验证后可用于登录，找回密码，接受订单通知等服务。</span>
                <a href="" class="layui-btn layui-right {eq name="memberinfo['ischeck_email']" value="0"}layui-btn-warm{/eq}" >立即修改</a>
            </li>
            <li class="fly-msg  app-havebind">
                {eq name="memberinfo['ischeck_mobile']" value="1"}
                <i class="iconfont icon-zhengque" style="font-size: 28px; color: #009688;"></i>
                {else/}
                <i class="iconfont icon-cuowu" style="font-size: 30px; color: #FF5722;"></i>
                {/eq}
                <h2>手机验证</h2>
                <span>
                {notempty name="memberinfo['mobile']"} 当前绑定手机号为：{$memberinfo['mobile']}{/notempty}
                验证后可用于登录，找回密码，接受订单通知等服务。</span>
                <a href="" class="layui-btn layui-right {eq name="memberinfo['ischeck_mobile']" value="0"}layui-btn-warm{/eq}">立即修改</a>
            </li>
        </ul>
    </div>
</div>
{/block}